<?php
class Pagemanager_Controller_Pagemanager implements Pagemanager_Controller_Mainable {
    
    public $page = array();
    
    private $pagemanager_model_pagemanager;
    private $pagemanager_model_accessleveldecision;
    
    public function __construct() {
        $this->pagemanager_model_accessleveldecision = new Pagemanager_Model_Accessleveldecision;
        $this->pagemanager_model_pagemanager = new Pagemanager_Model_Pagemanager;
    }


    public function main(array $variables = null) {
        $this->pagemanager_model_accessleveldecision->main($variables);
        $this->page = $this->pagemanager_model_pagemanager->main($variables);
        $view = new Core_Controller_View($this->page['template']);
        $view->assign('page', $this->page);
    }

}
